package com.monster.controller;

import com.monster.entity.Result;
import com.monster.service.ReportService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ReportController {

    @Reference
    ReportService reportService;

    @GetMapping("web/report/findMemberCountOfYearsAndMonth")
    public Result findMemberCountOfYearsAndMonth(){
        return new Result(reportService.findMemberCountOfYearsAndMonth());
    }

    @GetMapping("web/report/setmealProportion")
    public Result setmealProportion(){
        return new Result(reportService.setmealProportion());
    }

    @GetMapping("web/report/findBusinessData")
    public Result findBusinessData(){
        return new Result(reportService.findBusinessData());
    }
}
